<?php
class emailException extends Exception{

}

class pwdException extends Exception{
    function __toString()
    {
        return "<div class=\"error\">Exception:{$this->getCode()}
        :{$this->getMessage()} 
        in File : {$this->getFile()} on line : {$this->getLine()}
        </div>";
        //改写抛出异常结果
    }
}